package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 商家活动关联
 *
 * @author 16693103420
 * @since 2024-01-22
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tmp_business_activity")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BusinessActivityModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//商家活动关联表
    private Integer businessId;//商家ID
    private Integer activityId;//商家活动ID
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
}
